﻿using System.Threading.Tasks;
using Devonline.Entity;

namespace Devonline.MessageCenter
{
    public interface IChannelClient<TMessage, TKey, TContent> where TMessage : class, IMessage<TKey, TContent>
    {
        Task Receive(TMessage message);

        Task Send(TMessage message);
    }

    public interface IChannelClient : IChannelClient<Message, string, string>
    {
    }
}
